#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_checkBox_eat_clicked()
{
    QString result = ui->label->text();
    result += ui->checkBox_eat->text() + " ";
    ui->label->setText(result);
}

void Widget::on_checkBox_study_clicked()
{
    QString result = ui->label->text();
    result += ui->checkBox_study->text() + " ";
    ui->label->setText(result);
}

void Widget::on_checkBox_playgame_clicked()
{
    QString result = ui->label->text();
    result += ui->checkBox_playgame->text() + " ";
    ui->label->setText(result);
}
